#!/bin/bash

cd `dirname $0`

if file -L ./sbcl-runtime | grep -q x86-64; then
    HEAP_SIZE=3000
else
    HEAP_SIZE=1500
fi

exec ./sbcl-runtime \
    --dynamic-space-size $HEAP_SIZE \
    --no-sysinit --no-userinit \
    --eval '(pushnew "cl-linux-debug/" asdf:*central-registry*)' \
    "$@"
